import request from '@/utils/request'

//登录接口
export function login (data) {
  //返回一个promise对象
  return request({
    url: '/sys/login',
    method: 'post',
    data
  })
}

export function getInfo (token) {

}

export function logout () {

}

//获取用户基本信息
export function getuserinfo () {
  return request({
    method: 'post',
    url: '/sys/profile'
  })
}
//根据id获取用户详情
export function getuserdetailbyId (id) {
  return request({
    url: `/sys/user/${id}`

  })
}
